package com.wutianyi.module.product;

import java.util.List;

import com.wutianyi.module.product.dataobject.ProductDO;
import com.wutianyi.module.product.dataobject.ProductDTO;

public interface ProductDao {
	
	public ProductDTO getProductDTO();
	
	public int createProduct(ProductDO product);
	
	public ProductDO getProduct(int cId, int id);
	
	public List<ProductDO> listProductsByCompanyId(int companyId, int pageNo, int pageSize);
	
	public List<ProductDTO> listProductDTOsByCompanyId(int companyId, int pageNo, int pageSize);
	
	public List<ProductDTO> listProductDTOsByCompanyId(int companyId);
	
	public int listProductCountByCompanyId(int companyId);
	
	public int updateProduct(ProductDO product);
	
	public List<ProductDO> listLastestProducts(int count);
	
}
